package dht.message;

import java.io.Serializable;
import java.net.InetAddress;

import dht.data.TabBigInteger;

public class JoinMessage extends Message implements Serializable {

	private static final long serialVersionUID = 2155981665885525175L;

	public JoinMessage(InetAddress adresseIpClient, String virtualId,
					   TabBigInteger destination) {
		super(adresseIpClient, virtualId, destination);
		this.TYPE_MSG=JOIN_Message;
	}
	
	
	public JoinMessage JoinReply(InetAddress adresseIpClient, String virtualId,
			   TabBigInteger destination, InetAddress origine) {
		JoinMessage j= new JoinMessage(adresseIpClient, virtualId, destination);
		j.TYPE_MSG=REPLY_Message;
		return j ;
	}
}
